"use strict";
/**
 * @ Author: Yoann Meclot. MSay2
 * @ Created on: 2021-06-14 17:49:33
 * @ Modified on: 2021-06-14 17:55:36
 */
/**
 * Copyright (c) 2020-2021 MSay2 (Yoann Meclot) - @msay2/tspoet
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.System = void 0;
class System {
    static arraycopy(src, srcPos, dest, destPos, length) {
        if (src == null || dest == null)
            return;
        if (src == dest && srcPos < destPos && destPos < srcPos + length) {
            for (let i = length - 1; i >= 0; --i)
                dest[destPos + i] = src[srcPos + i];
        }
        else {
            for (let i = 0; i < length; ++i)
                dest[destPos + i] = src[srcPos + i];
        }
    }
}
exports.System = System;
//# sourceMappingURL=System.js.map